package Student;

import java.util.ArrayList;

public class GroupManager {
    private ArrayList<String> groups;

    public GroupManager() {
        groups = new ArrayList<>();
    }

    public void addGroup(String groupName, String className) {
        groups.add(groupName + " (班级: " + className + ")");
        System.out.println("已新增小组: " + groupName);
    }

    public ArrayList<String> getGroups() {
        return groups;
    }
}
